package the.workshop.bu.dto.req;

import lombok.Data;
import org.springframework.beans.BeanUtils;
import the.broccoli.auth.UserContext;
import the.workshop.bu.dto.CustomerMoveStatusDTO;

import java.util.List;

@Data
public class CustomerMoveStatusReq {
    private List<Integer> customerIds;
    private String status;

    public CustomerMoveStatusDTO toCustomerMoveStatusDTO() {
        CustomerMoveStatusDTO dto = new CustomerMoveStatusDTO();
        BeanUtils.copyProperties(this, dto);
        dto.setModifiedId(UserContext.userId());
        dto.setModifiedName(UserContext.userName());
        return dto;
    }
}
